package cn.cmeizu.spring6.iocxml.factorybean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author cmeizu
 * @date 2023/2/9 22:53
 */
public class TestUser {
  public static void main(String[] args) {
    ApplicationContext context = new ClassPathXmlApplicationContext("bean-factorybean.xml");
    User user = context.getBean(User.class);
    System.out.println("user = " + user);
  }
}
